package mobi.weq.model;

import java.util.Date;
import java.util.UUID;

/**
 * <pre>
 * 	id varchar(255) not null,
 * 
 * 	toleranceIndex integer,	
 * 
 * 	latitude double null,
 * 	longitude double null,
 * 	
 * 	timestamp datetime null,	
 * 	primary key(id)
 * 
 * </pre>
 * 
 * @author MoazzamKhan
 * 
 */
public class UserFeedback {
	private String id;
	private int toleranceLevel;
	private double latitude;
	private double longitude;
	private Date timestamp;

	public UserFeedback() {
		setId(UUID.randomUUID().toString());
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getToleranceLevel() {
		return toleranceLevel;
	}

	public void setToleranceLevel(int toleranceLevel) {
		this.toleranceLevel = toleranceLevel;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
}
